﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ppt = Microsoft.Office.Interop.PowerPoint;

namespace ObjectModel.PowerPoint
{
    public static class PresentationExtensions
    {
        public static Ppt.Slide ActiveSlide(this Ppt.Presentation pres)
        {
            Ppt.DocumentWindow wn = pres.Application.ActiveWindow;

            return pres == wn.Presentation ? wn.Selection.SlideRange[1] : null;
        }
    }
}
